<html><head><title>CopyFile</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CopyFile()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>CopyFile</b></font>(SourceFilename$, DestinationFilename$)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Copy the source file to the destination. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>SourceFilename$</i></td>
<td width="90%"> 
The file to copy. 

</td></tr>
<tr><td><i>DestinationFilename$</i></td>
<td> 
The location to copy the file to. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns nonzero if the operation was successful or zero if it failed. 

</blockquote><p><b>Remarks</b></p><blockquote>

If the destination file already exists, it will be overwritten. The <a href="filesize.html">FileSize()</a> function 
can be used to determine if the target exists or not. If source file and destination file 
are the same, a copy will not occurs and zero will be returned. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="renamefile.html">RenameFile()</a>, <a href="deletefile.html">DeleteFile()</a>, <a href="filesize.html">FileSize()</a>, 
<a href="../file/createfile.html">CreateFile()</a>, <a href="../file/openfile.html">OpenFile()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=copydirectory.html>CopyDirectory()</a> - <a href="index.html">FileSystem Index</a> - <a href="createdirectory.html">CreateDirectory()</a> -><br><br>

</body></html>